﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mongaba.Core.Enumerators;
using System.Runtime.Serialization;

namespace Mongaba.Core.DataContracts
{
    [DataContract(Name = "ProcessContract"),Serializable]
    internal class ProcessContract
    {
        [DataMember(Name="Id", IsRequired=true, Order= 0)]
        public string Id { get; set; }

        [DataMember(Name = "Score", IsRequired = true, Order = 1)]
        public float Score { get; set; }

        [DataMember(Name = "Status", IsRequired = true, Order = 2)]
        public ProcessStatus Status { get; set; }

        [DataMember(Name = "Address", IsRequired = true, Order = 3)]
        public string Address { get; set; }

        [DataMember(Name = "IsCoordinator", IsRequired = true, Order = 4)]
        public bool IsCoordinator { get; set; }

        [DataMember(Name = "User", IsRequired = true, Order = 5)]
        public UserContract User { get; set; }
    }
}
